package com.jxm.jdk8features;

import java.util.function.Consumer;

public class MethodReferenceExample {
    public static void main(String[] args) {
        Person person = new Person("Alice");
        
        Consumer<Person> printNameFunction = Person::printName;
        printNameFunction.accept(person);


    }
}